package service;

import dao.CustomerDao;
import pojo.Customer;

public class CustomerService {
	CustomerDao cdao;
	public Customer check_login(Customer c) {
		cdao =new CustomerDao();
		Customer customer=cdao.login(c);
		return customer;
		
	}
	public int reg(String name,String pwd) {
		cdao =new CustomerDao();
		int customer=cdao.regCustomer(name,pwd);
		return customer;
	}
}
